﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SpeakupBackend.Themes;

namespace SpeakupTests.SpeakupBackend.Themes
{
    [TestClass]
    public class ClubLevelGroupTests
    {
        [TestMethod]
        public void CreateClubLeveGroup()
        {
            foreach (var tuple in ClubLevelGroup.ClubFactory.ValidLevelGroups)
            {
                PrivateObject po = new PrivateObject(typeof(ClubLevelGroup), tuple.Item1, tuple.Item2);
                ClubLevelGroup club = (ClubLevelGroup)po.Target;

                Assert.AreEqual(club.MinLevel, tuple.Item1);
                Assert.AreEqual(club.MaxLevel, tuple.Item2);
            }
        }
    }
}
